package com.homegoods.orderinfodetail.ui.fragment;

import android.view.View;

import com.alibaba.android.arouter.launcher.ARouter;
import com.homegoods.orderinfodetail.R;
import com.homegoods.aroutercomment.ARouterPath;

/**
 */
public class ChoicePatternDialog extends BaseChoiceDialog {

    @Override
    protected int layoutResId() {
        return R.layout.info_dialog_choice_pattern;
    }

    @Override
    protected void initView(View view) {
        super.initView(view);
        findViewById(R.id.details_buy_confirm).setOnClickListener(this::onBuyClicked);
    }

    /**
     * 立即购买
     *
     * @param view
     */
    void onBuyClicked(View view) {
        //跳转到确认订单界面
        ARouter.getInstance()
                .build(ARouterPath.PATH_CONFIRM_ORDER)
                .navigation();
    }
}
